var util = require('util');
var fs = require("fs");

function load(pObj) {
	var output = '';
	if(typeof pObj === 'string') {
		//console.log(fs.readFileSync(pObj).toString());
		output = JSON.parse(fs.readFileSync(pObj).toString());
	} else {
		//console.log(JSON.stringify(pObj));
		output = pObj;
	}
	return output;
}


module.exports = {
		'load'	:	load
};